/*************************************************************************
	> File Name: myprocess2.c
	> Author: 
	> Mail: 
	> Created Time: Wed 05 Nov 2025 09:52:09 PM CST
 ************************************************************************/

#include<stdio.h>
#include "myprocess2.h"
#define N 101
#define Placeholder '-'
void FlussProcess(double total,double cur)
{
    int  con=(int)cur*100/total;
    char arr[N];
    char around[4]={'/','-','|','\\'}; 
    memset(arr, 0, sizeof(arr)); //将所有的字符填充0 \0
        int n=0;
    for(;n<con;++n)
        arr[n]='-';

        printf("[%-100s][%d%%][%c]\r",arr,con,around[con%4]);
        fflush(stdout);

}
